<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/dianning.tld" prefix="dianning"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/top.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/vip.css" rel="stylesheet" type="text/css" />
<link href="/css/avatar.css" rel="stylesheet" type="text/css" />
<link href="/css/validator.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery_last.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidator.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidatorRegex.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/DateTimeMask.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/avatar.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/popup.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="images/gif" href="animated_favicon1.gif" />
<title>点宁网[<dianning:webinfo type="area"/>分类信息]<dianning:webinfo type="area"/>免费发布信息<dianning:webinfo type="poweredby"/></title>
<meta name="Description" content="<dianning:webinfo type="area"/>分类信息网为您提供<dianning:webinfo type="area"/>分类信息，您可以免费发布和查询求职招聘,兼职,房屋出租,二手市场,生活服务,兼职,黄页等分类信息."/>
<meta name="Keywords" content="<dianning:webinfo type="area"/>免费发布信息, <dianning:webinfo type="area"/>分类信息, <dianning:webinfo type="area"/>信息港, <dianning:webinfo type="area"/>热线, <dianning:webinfo type="area"/>免费发布广告，<dianning:webinfo type="area"/>114"/>
</head>
<body>
<div class="bgtop">
<s:include value="/top.jsp" />
</div>

<div class="content">
<s:include value="/WEB-INF/jsp/user/left.jsp" />
	<div class="vipr">
	  <h2>修改公司资料信息</h2>
	  <ul class="viprheight">
<form name="save" id="save" method="post" action="company.action">
<s:hidden name="action" value="save"/>
<DIV class=s_title>修改资料</DIV>
<DIV class=c></DIV>
<TABLE  class="grpic mt20" border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD width="20%" align=right><SPAN class=red>*</SPAN> 公&nbsp;司&nbsp;名： </TD>
    <TD align=left><s:textfield name="companyname" id="companyname" size="20"/><span id="companynameTip"></span></TD>
</TR>
  <TR>
    <TD align=right><SPAN class=red>*</SPAN> 所属行业： </TD>
    <TD align=left>
    <s:select list="companyTradeList" name="companyTrade" id="companyTrade" listKey="key" listValue="value"></s:select>
	<span id="companyTradeTip"></span></TD>
</TR>
  <TR>
    <TD align=right><SPAN class=red>*</SPAN> 公司性制： </TD>
    <TD align=left>
    <s:select list="companyTypeList" name="companyType" id="companyType" listKey="key" listValue="value"></s:select>
	<span id="companyTypeTip"></span></TD>
</TR>
  <TR>
    <TD align=right><SPAN class=red>*</SPAN> 公司规模： </TD>
    <TD align=left>
    <s:select list="companySizeList" name="companySize" id="companySize" listKey="key" listValue="value"></s:select>
	<span id="companySizeTip"></span></TD>
</TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 联&nbsp;系&nbsp;人： </TD>
    <TD align=left><s:textfield name="linkman" id="linkman" size="20"/><span id="linkmanTip"></span></TD>
</TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 联系电话： </TD>
    <TD align=left><s:textfield name="tel" id="tel" size="20"/><span id="telTip"></span></TD>
</TR>
<TR>
    <TD align=right> 电子邮件： </TD>
    <TD align=left><s:textfield name="email" id="email" size="20"/><span id="emailTip"></span></TD>
</TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 公司地址： </TD>
    <TD align=left><s:textfield name="address" id="address" size="20"/><span id="addressTip"></span></TD>
</TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 公司简介： </TD>
    <TD align=left>
    <s:textarea id="remark" name="remark" rows="9" cols="50"></s:textarea>
    <font id="remarkTip"></font></TD>
 </TR>
  <TR>
    <TD>&nbsp; </TD>
    <TD colSpan=2 align=left><INPUT id=btnSubmit class=grsub value=完成修改 type=submit name=btnSubmit />    </TD></TR></TBODY></TABLE>
<DIV class=c></DIV></FORM>
  </ul>
      <h3></h3>

    </div>

    </div>
<div class="content">
<s:include value="/foot.jsp" />
</div>
<script type="text/javascript">        
$(document).ready(function(){ 
	$.formValidator.initConfig({formid:"save",errorfocus: true});
	$("#companyname").formValidator({onshow:"请添写公司名称",onfocus: "1~30个字，不能填写电话和特殊符号"}).regexValidator({ regexp: "\\S+", onerror: "请添写公司名称" }).regexValidator({ regexp: "^((?!电话|手机|联系方式|号码).)*$", onerror: "小区里不能填写电话" }).regexValidator({ regexp: "^(.){1,30}$", onerror: "公司名称应为1~30个字！" });
	$('#linkman').formValidator({onshow:"请输入联系人",onfocus:'2～6个字，不能填写电话和特殊符号'}).regexValidator({ regexp: "\\S+", onerror: "请输入联系人" }).regexValidator({ regexp: "^(.){2,6}$", onerror: "联系人不足2个字" }).regexValidator({ regexp: "^[\\w\\d\\s\\u4e00-\\u9fa5]*$", onerror: "联系人不能填写特殊符号" });
	$("#tel").formValidator({onshow:"请填写电话号码",onfocus: "请正确填写电话号码，"}).regexValidator({ regexp: "(^(0\\d{2,3})?-?([2-9]\\d{6,7})(-\\d{1,5})?$)|(^((\\(\\d{3}\\))|(\\d{0}))?(13|14|15|18)\\d{9}$)|(^(400|800)\\d{7}(-\\d{1,4})?$)|(^(95013)\\d{6,8}$)", onerror: "电话填写错误。请参照格式填写：87654321或138********" });
	$("#email").formValidator({onshow:"电子邮件可以为空",onfocus: "请输入电子邮件",'empty':true,onempty:"电子邮件可以为空"}).regexValidator({ regexp: "^\\w+([-+.]\\w+)*@[a-zA-Z0-9]{1}([-a-zA-Z0-9]{0,61}[a-zA-Z0-9]{1})?\\.[a-zA-Z0-9]+([.a-zA-Z0-9]+)*$", onerror: "请输入正确的邮件,如:myname@sina.com " });
	$("#address").formValidator({onshow:"请输入公司地址",onfocus: "1~30个字，不能填写电话和特殊符号"}).regexValidator({ regexp: "\\S+", onerror: "请输入公司地址" }).regexValidator({ regexp: "^((?!电话|手机|联系方式|号码).)*$", onerror: "不能填写电话" }).regexValidator({ regexp: "^(.){1,30}$", onerror: "公司地址应为1~30个字！" });
	$("#remark").formValidator({onshow:"请填写公司简介",onfocus: "10~2000个字之间" }).regexValidator({ regexp: "^[\\s\\S]*$", onerror: "请填写公司简介" }).regexValidator({ regexp: "^[\\s\\S]{10,}$", onerror: "工作经历不足10个字" }).regexValidator({ regexp: "^([\\s\\S]){10,2000}$", onerror: "内容应在10~2000个字之间" });
});

</script>
</body>
</html>
